#!/usr/bin/env python

import re
import sys

from refine_gene_info_part1 import strict_string

def main():
    for line in sys.stdin:
        gene_id, gene_func = line.strip('\n').split('\t')
        gene_func_stricted = strict_string(gene_func)
        print '%s\t%s' % (gene_id, gene_func_stricted)
    

if __name__ == "__main__":
    main()

